package com.ht.service.impl;

import com.ht.bean.Emp;
import com.ht.bean.Notice;
import com.ht.bean.Noticereceiver;
import com.ht.bean.Studentclass;
import com.ht.dao.NoticeDao;
import com.ht.service.NoticeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Resource
    private NoticeDao noticeDao;

    @Override
    public List<Notice> selectNoticeMsg() {
        return noticeDao.selectNoticeMsg();
    }

    @Override
    public List<Notice> selectNoticeMsgs() {
        return noticeDao.selectNoticeMsgs();
    }

    @Override
    public List<Map> selectNoandEmp(Integer startIndex, Integer pageSize, Emp emp, Notice notice) {
        return noticeDao.selectNoandEmp(startIndex,pageSize,emp,notice);
    }

    @Override
    public int countNoandEmp(Emp emp, Notice notice) {
        return noticeDao.countNoandEmp(emp,notice);
    }

    @Override
    public boolean deleteNoticeId(Integer noticeId) {
        return noticeDao.deleteNoticeId(noticeId);
    }

    @Override
    public boolean insertNoticeMsg(Notice notice) {
        return noticeDao.insertNoticeMsg(notice);
    }

    @Override
    public List<Map> selectNoticeByNoticeId(Integer noticeId) {
        return noticeDao.selectNoticeByNoticeId(noticeId);
    }

    @Override
    public Notice selectNoticeById(Integer noticeId) {
        return noticeDao.selectNoticeById(noticeId);
    }

    @Override
    public boolean updateNoticeId(Notice notice) {
        return noticeDao.updateNoticeId(notice);
    }

    @Override
    public List<Studentclass> studentclassList() {
        return noticeDao.studentclassList();
    }

    @Override
    public Integer[] selectAllEmpId() {
        return noticeDao.selectAllEmpId();
    }

    @Override
    public Integer[] selectAllStuId() {
        return noticeDao.selectAllStuId();
    }

    @Override
    public Integer[] selectAllClaStuId(Notice notice) {
        return noticeDao.selectAllClaStuId(notice);
    }

    @Override
    public boolean insertNoticeReceivce(Noticereceiver noticereceiver) {
        return noticeDao.insertNoticeReceivce(noticereceiver);
    }

    @Override
    public boolean insertNoticeReceivces(Noticereceiver noticereceiver) {
        return noticeDao.insertNoticeReceivces(noticereceiver);
    }

    @Override
    public boolean deleteNoticereceiverId(Integer noticeId) {
        return noticeDao.deleteNoticereceiverId(noticeId);
    }

    @Override
    public boolean updnoticereceiver(Noticereceiver noticereceiver) {
        return noticeDao.updnoticereceiver(noticereceiver);
    }

    @Override
    public boolean updnoticereceivers(Noticereceiver noticereceiver) {
        return noticeDao.updnoticereceivers(noticereceiver);
    }

    @Override
    public boolean updnoticereceiveres(Noticereceiver noticereceiver) {
        return noticeDao.updnoticereceiveres(noticereceiver);
    }

    @Override
    public List<Map> allsynotice(Notice notice, Integer isStudent) {
        return noticeDao.allsynotice(notice,isStudent);
    }

    @Override
    public List<Map> allsynotices(Notice notice, Integer isStudent) {
        return noticeDao.allsynotices(notice,isStudent);
    }

    @Override
    public List<Map> allsynoticeies(Notice notice, Integer isStudent) {
        return noticeDao.allsynoticeies(notice,isStudent);
    }

    @Override
    public int countNotice() {
        return noticeDao.countNotice();
    }

    @Override
    public Noticereceiver selectNoc(Integer noticeId) {
        return noticeDao.selectNoc(noticeId);
    }
}
